#!/bin/bash
# note that execution of this script requires root privileges.

# catch2 is a c++ unit test toolkit
# mostly used for developers of cnok
# so the installatioin is optional
# it can be installed via package managers (dnf, apt, yum, etc.)
# in most linux systems (e.g., Fedora and Ubuntu)
# for those that cannot (e.g., CentOS 7), please use this shell script to enable
# `catch` in your computer

git clone -b master --depth=1 https://github.com/catchorg/Catch2.git
cd Catch2
cmake -Bbuild -H. -DBUILD_TESTING=OFF
sudo cmake --build build/ --target install
